from rest_framework.viewsets import ModelViewSet
from apps.teachers.models import Teacher
from apps.teachers.serializers import TeacherSerializer
from apps.users.authentication import CustomAuthentication
from apps.users.permissions import CustomIsSuperUser


# Create your views here.
class TeacherViewSet(ModelViewSet):
    authentication_classes = [CustomAuthentication]
    permission_classes = [CustomIsSuperUser]
    queryset = Teacher.objects.all()
    serializer_class = TeacherSerializer
